﻿namespace DuBaiCoffee2.Model
{
    /// <summary>
    /// 请求返回的信息
    /// </summary>
    public class PrinterMessageModel
    {
        /// <summary>
        /// 请求类型
        /// </summary>
        public int code { get; set; }
        /// <summary>
        /// 返回请求标识符
        /// </summary>
        public int tag { get; set; }
        /// <summary>
        /// 返回请求信息
        /// </summary>
        public string msg { get; set; }
        public object data { get; set; }
    }
    /// <summary>
    /// 请求时候的发送格式1
    /// </summary>
    public class PrinterSel
    {
        /// <summary>
        /// 请求类型
        /// </summary>
        public int code { get; set; }
        /// <summary>
        /// 请求标识符
        /// </summary>
        public int tag { get; set; }
    }
    /// <summary>
    /// 请求时候的发送格式2
    /// </summary>
    public class PrinterSel2
    {
        /// <summary>
        /// 请求类型
        /// </summary>
        public int code { get; set; }
        /// <summary>
        /// 请求标识符
        /// </summary>
        public int tag { get; set; }
        /// <summary>
        /// 上传打印图片信息
        /// </summary>
        public PrinterData data { get; set; }
    }
    /// <summary>
    /// 图片打印的信息
    /// </summary>
    public class PrinterData
    {
        /// <summary>
        /// 杯子的直径 单位mm
        /// </summary>
        public int size { get; set; }
        /// <summary>
        /// 上传的图片的base64
        /// </summary>
        public string img { get; set; }
    }
    /// <summary>
    /// 反馈打印信息
    /// </summary>
    public class feedBackMsg
    {
        //总打印次数、提醒值、当前墨盒计数
        /// <summary>
        /// 总打印次数
        /// </summary>
        public int apiCount { get; set; }
        /// <summary>
        /// 提醒值
        /// </summary>
        public int alertCount { get; set; }
        /// <summary>
        /// 当前墨盒计数
        /// </summary>
        public int currentCount { get; set; }
    }
}
